#include "Http.hpp"
#include <memory>

// ./myhttp server_port
int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        std::cerr << "Usage: " << argv[0] << " server_port" << std::endl;
        exit(USAGE_ERROR);
    }

    Enable_Console_Log_Strategy();

    uint16_t server_port = std::stoi(argv[1]);

    std::unique_ptr<Http> httpsvrp = std::make_unique<Http>(server_port);
    httpsvrp->Start();
    
    return 0;
}